Integrand size = 12, antiderivative size = 38 \[ \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx=\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \]
2*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/ 2*c),2^(1/2))/d/cos(d*x+c)^(1/2)/(b*sec(d*x+c))^(1/2)
Time = 0.02 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx=\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \]
Time = 0.22 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3042, 4258, 3042, 3119}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\sqrt {b \csc \left (c+d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \frac {\int \sqrt {\cos (c+d x)}dx}{\sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx}{\sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}\) |
3.2.6.3.1 Defintions of rubi rules used
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x] )^n*Sin[c + d*x]^n Int[1/Sin[c + d*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]
Result contains complex when optimal does not.
Time = 0.60 (sec) , antiderivative size = 299, normalized size of antiderivative = 7.87
method | result | size |
risch | \(-\frac {i \sqrt {2}}{d \sqrt {\frac {b \,{\mathrm e}^{i \left (d x +c \right )}}{{\mathrm e}^{2 i \left (d x +c \right )}+1}}}-\frac {i \left (-\frac {2 \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}{b \sqrt {{\mathrm e}^{i \left (d x +c \right )} \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}}+\frac {i \sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (d x +c \right )}}\, \left (-2 i \operatorname {EllipticE}\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )+i \operatorname {EllipticF}\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {b \,{\mathrm e}^{3 i \left (d x +c \right )}+b \,{\mathrm e}^{i \left (d x +c \right )}}}\right ) \sqrt {2}\, \sqrt {b \,{\mathrm e}^{i \left (d x +c \right )} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}}{d \sqrt {\frac {b \,{\mathrm e}^{i \left (d x +c \right )}}{{\mathrm e}^{2 i \left (d x +c \right )}+1}}\, \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}\) | \(299\) |
default | \(\frac {2 i \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )-2 i \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \cos \left (d x +c \right )+4 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )-4 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+2 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )-2 i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )+2 \sin \left (d x +c \right )}{d \left (\cos \left (d x +c \right )+1\right ) \sqrt {b \sec \left (d x +c \right )}}\) | \(387\) |
-I/d*2^(1/2)/(b*exp(I*(d*x+c))/(exp(I*(d*x+c))^2+1))^(1/2)-I/d*(-2*(b*exp( I*(d*x+c))^2+b)/b/(exp(I*(d*x+c))*(b*exp(I*(d*x+c))^2+b))^(1/2)+I*(-I*(exp (I*(d*x+c))+I))^(1/2)*2^(1/2)*(I*(exp(I*(d*x+c))-I))^(1/2)*(I*exp(I*(d*x+c )))^(1/2)/(b*exp(I*(d*x+c))^3+b*exp(I*(d*x+c)))^(1/2)*(-2*I*EllipticE((-I* (exp(I*(d*x+c))+I))^(1/2),1/2*2^(1/2))+I*EllipticF((-I*(exp(I*(d*x+c))+I)) ^(1/2),1/2*2^(1/2))))*2^(1/2)/(b*exp(I*(d*x+c))/(exp(I*(d*x+c))^2+1))^(1/2 )*(b*exp(I*(d*x+c))*(exp(I*(d*x+c))^2+1))^(1/2)/(exp(I*(d*x+c))^2+1)
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.09 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.74 \[ \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx=\frac {i \, \sqrt {2} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - i \, \sqrt {2} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{b d} \]
(I*sqrt(2)*sqrt(b)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d *x + c) + I*sin(d*x + c))) - I*sqrt(2)*sqrt(b)*weierstrassZeta(-4, 0, weie rstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))))/(b*d)
\[ \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx=\int \frac {1}{\sqrt {b \sec {\left (c + d x \right )}}}\, dx \]
\[ \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx=\int { \frac {1}{\sqrt {b \sec \left (d x + c\right )}} \,d x } \]
\[ \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx=\int { \frac {1}{\sqrt {b \sec \left (d x + c\right )}} \,d x } \]
Timed out. \[ \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx=\int \frac {1}{\sqrt {\frac {b}{\cos \left (c+d\,x\right )}}} \,d x \]